package com.qk.management.controller;

import com.qk.common.Result;
import com.qk.dto.user.UserLoginDTO;
import com.qk.management.service.UserService;
import com.qk.vo.user.UserLoginVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @author kaoM1Jy
 * @date 2025/10/10 15:47
 * @description:
 */
@RestController
@RequestMapping("/login")
public class LoginController {
    @Autowired
    private UserService userService;

    @PostMapping
    public Result login(@RequestBody UserLoginDTO dto) {
        UserLoginVO vo =userService.login(dto);
        return Result.success(vo);
    }

}
